home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / arch / sparc64 / boot / Makefile
Encoding:
Makefile  |  2008-12-24  |  965 b   |  34 lines

  1. # Makefile for the Sparc64 boot stuff.
  2. #
  3. # Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  4. # Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  5.  
  6. ROOT_IMG    := /usr/src/root.img
  7. ELFTOAOUT    := elftoaout
  8.  
  9. hostprogs-y    := piggyback
  10. targets        := image tftpboot.img vmlinux.aout
  11.  
  12. quiet_cmd_elftoaout = ELF2AOUT $@
  13.       cmd_elftoaout = $(ELFTOAOUT) vmlinux -o $@
  14. quiet_cmd_piggy     = PIGGY   $@
  15.       cmd_piggy     = $(obj)/piggyback $@ System.map $(ROOT_IMG)
  16. quiet_cmd_strip     = STRIP   $@
  17.       cmd_strip     = $(STRIP) -R .comment -R .note -K sun4u_init -K _end -K _start vmlinux -o $@
  18.  
  19.  
  20. # Actual linking
  21. $(obj)/image: vmlinux FORCE
  22.     $(call if_changed,strip)
  23.     @echo '  kernel: $@ is ready'
  24.  
  25. $(obj)/tftpboot.img: vmlinux $(obj)/piggyback System.map $(ROOT_IMG) FORCE
  26.     $(call if_changed,elftoaout)
  27.     $(call if_changed,piggy)
  28.     @echo '  kernel: $@ is ready'
  29.  
  30. $(obj)/vmlinux.aout: vmlinux FORCE
  31.     $(call if_changed,elftoaout)
  32.     @echo '  kernel: $@ is ready'
  33.  
  34.